package com.t235.gc.mapper;

import com.t235.gc.entity.Goods;
import com.t235.gc.goodsvo.GoodsAndDeviceVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsMapper {
    int deleteByPrimaryKey(Long goodsid);

    int insert(Goods record);

    int insertSelective(Goods record);

    Goods selectByPrimaryKey(Long goodsid);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);

    List<GoodsAndDeviceVo> FindByGoodsAndDeviceVo(@Param("isstock") Integer isstock, @Param("isfault") Integer isfault);

    List<Goods> FindByGoodsCategoryId(Long goodscategoryid);

    List<Goods> FindByAll(Goods good);//带条件查询所有商品数据

    int updateByIsoff(Goods goods);//商品上下架
}